package com.company.oa.hr.dto.recruitment;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class PositionDTO {
    private Long id;
    
    @NotBlank(message = "职位名称不能为空")
    private String positionName;
    
    @NotNull(message = "部门ID不能为空")
    private Long departmentId;
    
    @NotBlank(message = "部门名称不能为空")
    private String departmentName;
    
    @NotNull(message = "招聘人数不能为空")
    private Integer headcount;
    
    @NotBlank(message = "工作地点不能为空")
    private String workLocation;
    
    private String salaryRange;
    private String education;
    private String experience;
    
    @NotBlank(message = "职位描述不能为空")
    private String description;
    
    @NotBlank(message = "职位要求不能为空")
    private String requirement;
    
    private String publishChannels;
    
    @NotNull(message = "开始日期不能为空")
    private Date startDate;
    
    @NotNull(message = "结束日期不能为空")
    private Date endDate;
} 